chore: add openapi-fetch to bridge controller FIRST commit#7616
chore: add openapi-fetch to bridge controller FIRST commit#7616infiniteflower wants to merge 6 commits intomainfrom
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution MetaMask internal reviewing guidelines:
|
58c9a17 to
8d95e97
Compare
- Add @hey-api/openapi-ts for generating types and Zod schemas from OpenAPI spec - Add zod dependency for runtime validation - Add openapi-ts.config.ts configuration - Add scripts: fetch:spec, fetch:spec:local, generate:api, generate:api:local - Add .gitignore to exclude fetched api-spec.json
Generated from Bridge API OpenAPI spec using @hey-api/openapi-ts: - types.gen.ts: TypeScript types for all API endpoints - zod.gen.ts: Zod schemas for runtime validation
The manual type definitions are no longer needed now that types are auto-generated from the OpenAPI spec.
This reverts commit b0d8170.
Explanation
References
Checklist